
INSTALLATION

-- system prerequisites --

apt-get install samba apache2 php5 gamin

follow instructions from : http://www/howtoforge.com/samba_setup_ubuntu_5.10_p5


I use a slight modification where I use the 'domain' as the main group for the 
domain accounts. 


-- dcadmin website --

create /var/www/dcadmin

from the zipped archive, copy the files in the 'website' directory to 
the dcadmin directory just created.

make sure there is a directory dctmp under dcadmin that has
write access for the webserver.

   chown www-data /var/www/dcadmin/dctmp


-- monitor and action scripts --

from the zipped archive, copy the scripts from ulb to the 
directory /usr/local/bin on the local system.

set permissions as follows:

    chmod 700 /usr/local/bin/*-dcadmin
    chmod 755 /usr/local/bin/results-dcadmin
    chown root:root /usr/local/bin/*-dcadmin


-- system startup scripts --

to make sure the listening process is run on system boot up, add
the following line to /etc/rc.local
 
    /usr/local/bin/monitor-dcadmin > /dev/null 2>&1 &

this will start the file listener, block any messages and run
active in the background.


-- apache --

ideally you want to password-protect the dcadmin directory.


to do so, edit /etc/apache2/sites-available/httpd.conf
and add a new 'Directory' section.

Example:

	<Directory /var/www/dcadmin>
		Options Indexes FollowSymLinks MultiViews
		AllowOverride None
		Order allow,deny
		allow from all
                AuthType Basic
                AuthName "DC Administration"
                AuthUserFile /etc/apache2/htpasswd
                Require user admin
	</Directory>

Then, add a new user and password from the command line:

   # htpasswd -c /etc/apache2/htpasswd admin


It will then prompt for a new password.

Restarting the webserver will activate the new settings.

